#{extends 'CRUD/layout.html' /}
#{set title:messages.get('crud.blank.title', type.modelName) /}

<div id="crudBlank" class="${type.name}">

    <h2 id="crudBlankTitle">&{'crud.blank.title', type.modelName}</h2>

    <div class="objectForm">
    #{form action:@create(), enctype:'multipart/form-data'}
        #{crud.form }
        	#{crud.custom 'organizaciones'}
	    	  	#{customs.customSubbaseOrganizaciones 
	    	  		organizaciones: organizaciones, 	    	  		
	    	  		field:object /}
	    	#{/crud.custom}
	    	#{crud.custom 'tipoSubbase'}
	    	  	#{customs.customTipoSubbase 
	    	  		tipoSubbases: tipoSubbases, 
	    	  		field:object /}
	    	#{/crud.custom}
        #{/crud.form}
        <p class="crudButtons">
            <input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
        </p>
    #{/form}
    </div>

</div>

<script type="text/javascript">
 	$("#object_fechaFinal").datepicker({
		 defaultDate: "+1w",
		 changeMonth: true,
		 numberOfMonths: 1,
		 dateFormat: 'yy-mm-dd'
	 });
</script>